#import "MainScene.h"
#import <AVOSCloud/AVOSCloud.h>

@implementation MainScene

-(void)test {
    NSLog(@"In test");
    [[CCDirector sharedDirector] replaceScene:[CCBReader loadAsScene:@"test1"]];
}

-(void)onExit {
    [super onExit];
    NSLog(@"In MainScene onExit");
    
    AVObject *testObject = [AVObject objectWithClassName:@"TestObject2"];
    [testObject setObject:@"bar" forKey:@"foo"];
    [testObject save];
}

@end
